Added parameter 'pairs' to select the number of pair of ports

Default value is 4