Cleanup processOutput a bit.
More usage of markSpend.