Inserted functions sea, river, and isMember