btw, you claim that INTERVAL option is a float representation of the polling frequency, but still you cast it to integer. You might want to fix this :)