Added in the ns-record macro. Heavily cribbed from tools.trace.