Working on animation state machine.