OK, the changes are moving restInit after getCurrentTime, and semInit after restStart

NTC