Main thread now limited to 60hz. Fixed a few small things.