Added rule for ties.