Added check for amount of clients connected to the server.