Adding guard to debug statements.