This code stops after a while due to protected files such as system files, \"Permission Denied\".
Is there a way to modify the code below so that it can handle such prot
ensure the process has permissions. see