Detects ties.