Attempt to rewrite bulky output with streams
Removed unused input