Adding Ender code to make animation more of a library.