Add sudo to various functions