Added support for categories in advanced API