Added the ability to connect using connect method