Extact polling into own module.