Starting to add nested, compressed, expanded and compact output modes