The Pragmatic Intelligence of Habits