Changing the animation to support speed change