Added some functionality for traces, how to use it?