What purposes were the production of farm tools used for?