Updated the time-card function.