Habit Mechanisms and Behavioural Complexity