Added a way to stop the currently running animation.