Added custom animation action and collision detection.