First draft of the tracing system by Jan