Changed time from ms to seconds