Added a debug level with better framerate in debug mode.