Improve transaction creation to support using multiple outputs as inputs.