COMP: Add switching between binary and regular streams and archives