Removed sudo because it made no sense running the script not as root when nearly all of the commands where run as root.