Automate the simulation