Implemented adding connections functionality