Added transactions and initial code of related commands