Removed updatefps function in favor of setInterval (500ms).