Changed animation loop