Adding formatting of nested elements.