Added some unfinished framerate code
Fixed the frame rate