When is motivation gained and lost?