Make poll interval adjustable