Implementation of behaviours, actions; refactoring.