Polling functionality added.