Added some util code for animations and such