Edited update code and added FPS & UPS display to debug mode