Added support for multiple categorical parents.