Delete transaction and better outputHistory handling