Changed handling of time using ntp.