Fixed HUGE lag due to debug code