Added functionality for animation. Woo!