Added function for getting one animation loop.