Poll server every five seconds.