Added ability to cancel and reset the animation.