Added connect and connect_url functions.