I think this should be dependent on the sudo parameter. I will fix this