Japan came up with the Gentlemen's Agreement. They could trade or they could stop allowing emmigration