Implementing milliseconds - seconds logic.