Output with proper xref cleaning.