Added processing of ranking per category