Updating CatchProcess() function