Cleanup unusued parts.
Draft multi-buffer solution.
Slow, but probably functioning...
Better reporting on encode.