Fix config handling, provide poll interval