Added optional permission for protect