Move polling to top-level.