Added a new flag to control debugging output.

@marshall