Added -n option to Sudo to prevent hanging on no sudo access.