Added transactions and pipelines

Added transactions and pipelines (=batching)