Letting the number of slaves be adjustable by the user