SubmitBatch logic added to serverHandler