Added function to get the current frame of an animation. Also commented out some debug output