Made polling periods configurable