Added batching for Cosm