Best Traces selection code complete.