Frame checking as done here will generally be most useful when the order tracing is being disturbed by bad row/columns of high intensity pixels. The tracing routines will ignore any pixels flagged by this routine and thus have a better chance of determining the trace.
Martin Clayton