Added rating filter and fixed performance issue.