Made category filtering work