Edits made during class to cleanup and control FPS.