Made the polling-interval configurable