Also during this period, Canada became a port of entry for many Europeans seeking to gain entry into the United States. Canadian transportation companies advertised Canadian ports as a hassle-free way to enter the US, especially as the States began barring entry to certain ethnicities. Both the US and Canada mitigated this situation in 1894 with the "Canadian Agreement" which allowed for U.S. immigration officials to inspect ships landing at Canadian ports for immigrants excluded from the US. If found, the transporting companies were responsible for shipping the persons back.