Changed the input time to use milliseconds.