diff --git a/lofar-cwl/steps/ddecal.cwl b/lofar-cwl/steps/ddecal.cwl
index 66e57cd858595e723ed1fb203771cdad5653bf62..cc54a6cda7892c991213dc11cbe3769fc8b55085 100644
--- a/lofar-cwl/steps/ddecal.cwl
+++ b/lofar-cwl/steps/ddecal.cwl
@@ -14,7 +14,6 @@ hints:
 
 arguments:
   - steps=[ddecal]
-  - ddecal.mode=rotation+diagonal
   - ddecal.uvlambdamin=300
   - ddecal.maxiter=50
   - ddecal.nchan=1
@@ -30,38 +29,38 @@ inputs:
     type: Directory?
     doc: Input Measurement Set
     inputBinding:
-        prefix: msin=
-        separate: false
+      prefix: msin=
+      separate: false
 
   - id: msin_datacolumn
     type: string
     default: DATA
     doc: Input data Column
     inputBinding:
-        prefix: msin.datacolumn=
-        separate: false
+      prefix: msin.datacolumn=
+      separate: false
 
   - id: msin_modelcolum
     type: string
     default: MODEL_DATA
     doc: Model data Column
     inputBinding:
-        prefix: msin.modelcolumn=
-        separate: false
+      prefix: msin.modelcolumn=
+      separate: false
 
   - id: output_name_h5parm
     type: string
     default: instrument.h5
     inputBinding:
-        prefix: ddecal.h5parm=
-        separate: false
+      prefix: ddecal.h5parm=
+      separate: false
   - id: msout_name
     type: string
     doc: Output Measurement Set
     default: out.MS
     inputBinding:
-        prefix: msout=
-        separate: false
+      prefix: msout=
+      separate: false
 
 #--------------------
   - id: propagate_solutions
@@ -91,6 +90,27 @@ inputs:
       and mode=rotation+diagonal.
     inputBinding:
       prefix: flagdivergedonly=True
+
+  - id: mode
+    type:
+      type: enum
+      symbols:
+        - scalarcomplexgain
+        - scalarphase
+        - scalaramplitude
+        - tec
+        - tecandphase
+        - fulljones
+        - diagonal
+        - phaseonly
+        - amplitudeonly
+        - rotation
+        - rotation+diagonal
+    doc: |
+      Type of constraint to apply. Options are
+    inputBinding:
+      prefix: ddecal.mode=
+      separate: false
 outputs:
   - id: msout
     doc: Output Measurement Set