Added periodic polling.