Ticket 37. The time_t currentTime parameter added in