diff --git a/bin/lofar_sip_from_ms.py b/bin/lofar_sip_from_ms.py
index be25b50d99492046bc35feb52232fb364ebc28e3..2071aa88dc361dc5315e5af717619bb364ca53d3 100755
--- a/bin/lofar_sip_from_ms.py
+++ b/bin/lofar_sip_from_ms.py
@@ -7,7 +7,7 @@ import yaml
 from astropy.time import Time
 from datetime import timedelta
 import isodate
-
+import os
 
 def parse_args():
     parser = ArgumentParser(description='Generates LOFAR SIP from MS')
@@ -62,7 +62,7 @@ def collect_dataproduct_info(msin):
     dataproduct['dataProductType'] = 'Correlator data'
     dataproduct['_type'] = 'CorrelatedDataProduct'
     dataproduct['storageWriter'] = _storage_writer_to_storage_manager[storage_manager]
-    dataproduct['storageWriterVersion'] = 'NA'
+    dataproduct['storageWriterVersion'] = os.environ.get('DYSCO_COMMIT', 'None')
     dataproduct['subband'] = spectral_window.getcol('NAME', 0)[0].split('_')[-1]
     dataproduct['stationSubband'] = dataproduct['subband']