Factors affecting labor and immigration in the 1800s