From Intentions to Habits