Automatically suspend and resume on tab out/in to prevent glitches
Clean up some syntax