parentId validation and properties implementation. Ready for pull request