Improved code aesthetics a bit and increased mouse move scan frequency