Added traceBack code