Added the ability to prevent items from having children.