Make poll interval configurable