Added sudo and ruby support