Fixes issues with timing by correcting millis()
Fix spacing