Add stopAnimationLoop method