Removed speed sink in get_valid_nids