Made it so animations can loop or not.