changed idle time to seconds instead of milliseconds