Tweaking animation loop