The limiting by category function was implemented.