Non redundant header writing implemented.
Tests OK