Output format

Add current assignments and protect against infinite recursion in views