Made polling interval configurable