Added debug variable and frame rate tracker.