What are the procedures before ships enter a port?