Added logging for spots where we set permissions.