Added methods for transaction.