Some modifications to permit to connect the number of clients needed