Added trace
Use parameter to set what interval trace is printed