Some, such as Japan, traditionally found alternate ways of filling the role normally filled by immigrants (for example, greater automation to compensate for labor shortages), and designed immigration laws specifically to prevent immigrants from remaining within the country.