Added sudo where it's necessary