Tweaked constants for better performance.
Fixed modulo check resulting in the correction never occurring. Robot still FAIL.