Update every 250 datapoints (half a minute)
sleep(0.1) doesn't work, which is equal to sleep(0). I decided that one second sleep is okay to keep the load down, I could've also used usleep.