Polling Function builder