Yes, this function is used in startAnimation and now in stopAnimation.