Factored Process Inputs out of main function