Updated AddConnectionTask to support full URI argument