Added flag to choose diff or execution