Added sudo where needed