Improved the logic, negative rating offered last.