Added a pause function to the animation panel.