changed sleep time to be a multiple of the update interval