Figured out how to properly do an animation loop.