Added support for categoryID to specify folder.