Cleanup, and make it maintain a current frame number