Mostly adding support for child permissions.