Written connect function, added sea locations