Red and green tracking + selection on the minimum distance