Changed maxPermits to permits