Added ability to cancel animations