Added multiple connection functionality

Added functionality to the program to print the output from each
connection when multiple connections are specified