Use dynamic debug for printing output.

Thanks for the feedback Jay.