diff --git a/daq.sh b/daq.sh
index 6ebc8f9492e7dcff63da4511be8cbd41b4362b74..ec455e75b96876c9339c473b6fc129d1b31d322b 100755
--- a/daq.sh
+++ b/daq.sh
@@ -2,14 +2,14 @@
 #
 # TriDAS launcher
 #
-# This script allow the launch the TriDAS processes on the machine
+# This script allows the launch the TriDAS processes on the machine
 #
 # Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it>
 #
 
-if [ $# -ne 5 ]; then
+if [ $# -ne 6 ]; then
   echo "ERROR:"
-  echo "Syntax: $0 <run_number> <run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username>"
+  echo "Syntax: $0 <run_number> <run_start_time> <run_duration_in_sec> <ip of the DAQ server> <username> <writetimeslices>"
   exit -1
 fi
 
@@ -18,11 +18,12 @@ RUN_START_TIME=$2
 RUN_DURATION=$3
 DAQ_SERVER=$4
 DAQ_USER=$5
+WRITE_TIMESLICES=$6
 
 SERVER=${DAQ_SERVER} # JLigier for StateMachine
 LOGGER=${DAQ_SERVER} # JLigier for logging
 DEBUG=3          # 3 is highest
-TIMEOUT_S=20     # timeout arbitrarily set at 20 seconds
+TIMEOUT_S=1      # timeout arbitrarily set to 20 seconds
 
 NUMBER_OF_FRAMES=18 # 18 doms
 
@@ -58,7 +59,7 @@ detector               = %<${DETECTOR}>%;
 triggerParameters      = trigger3DMuon.enabled   = 1;
 triggerParameters      = trigger3DShower.enabled = 1;
 triggerParameters      = writeSummary            = 1;
-triggerParameters      = writeTimeslices         = 1;
+triggerParameters      = writeTimeslices         = ${WRITE_TIMESLICES};
 bufferSize             = 1073741824;
 EOF