Added the time tracking logic and a progress count logic.