Issue #5: Make the polling frequency configurable