Some of the trace functions were causing a crash