Batch

Adding functionalities that will be needed to support the batch module