Add max_clients support