Making polling also env configurable