Add conditional logic for ties