Modified setup script with sudo