Added minet_connect function