Added AWS file protection code