Separated logic and graphics, fps standard added.