Add record_transaction() method.