Moved the code for display of traces to a separate loop