In 1887, only 2,389 non-Chinese foreigners lived in Japan, with strict limitations on freedom of movement. These limitations meant that foreigners in Japan were not able to commit crime with impunity, in contrast with China, where foreigners were granted the ability to travel to the interior after passporting. Rather, it was in the context of the Japanese state's desire to eliminate all competing jurisdictions and calls for legal reform based on the models of those jurisdictions that Japan's government desired to abolish foreign courts.