The Immigration Act of 1907 allowed the president to make an agreement with Japan to limit the number of Japanese immigrants. The law also barred the feebleminded, those with physical or mental defects, those suffering from tuberculosis, children under 16 without parents, and women entering for "immoral purposes."
1907 called and thinks it worked out great.