Running Batch Processes in the Application