Added a trace command line switch to reduce log outputs.