Added ExecuteWithOutput method