Make number of connections paramtrizable.