Cleaned Buffer Final 01

Okay silly me. Don't write final outputs inside loops.