Calling sudo inside may be problematic