Make polling time configurable