Slight refactor of transaction printing