On 18 April 1885 the Li-Ito Agreement was made in Tianjin, China, between the Japanese and the Chinese. In it, they both agreed to pull troops out of Joseon and that either party would send troops only if their property was endangered and that each would inform the other before doing so. Both nations also agreed to pull out their military instructors to allow the newly arrived Americans to take full control of that duty. The Japanese withdrew troops from Korea, leaving a small number of legation guards, but the Queen Consort was ahead of the Japanese in their game. She summoned Chinese envoys and through persuasion, convinced them to keep 2,000 soldiers disguised as Joseon police or merchants to guard the borders from any suspicious Japanese actions and to continue to train Korean troops.