Formatting.
Cleanup memory buffers after finished.
Formatting and buffer cleanup