Added argument checking to trace.