Implemented insertAsRoot