Limiting the number of connections