Added check and reload to run script as root using sudo