Added comment for permissionWorker function