Added the ability to establish a connection from input line