Finished adding the ability to cancel animations.