Add Trace function.