Adding trace output.