updating the host every N seconds.