Modified the definition of transfer transactions to make them more efficient with backtracking.