Added sptrace routine.