Added support for animations which only loop once