Adding Diagnostic Printing Functions