Replaced animation code with actions.