List* functions throw exceptions if maxids = 0, so bypass this case.