Added a debug mode with fps counter