Add a TraceListener
Use constant to define statuses
Improve TraceListener output