The Smart Way to Stick to Habits