Use println instead of trace, and only when running from CLI.