Added polling function to utility