Updating polling function