Added connect method