Corrected to use milliseconds