Method to add statements to a transaction