Foundry automation