diff --git a/MAC/APL/Appl_Controller/startBGL.sh b/MAC/APL/Appl_Controller/startBGL.sh
index a7b4aaa226f94ac66f8d4335820227f7b210a581..cac1f1752c2db1f98354a616790ea412bebe6ea7 100755
--- a/MAC/APL/Appl_Controller/startBGL.sh
+++ b/MAC/APL/Appl_Controller/startBGL.sh
@@ -14,11 +14,12 @@
 
 # startBGL starts specific CEP run scripts directly
 PARSET=/opt/lofar/share/CNProc.parset
+PARTITION=$2
 
 sed -i 's/.*OLAP.CNProc.integrationSteps.*//' $PARSET
 sed -i 's/.*OLAP.IONProc.integrationSteps.*//' $PARSET
 
-/opt/lofar/bin/runParset.py -P R00 parset=$PARSET >>/globalhome/lofarsystem/log/run.runParset.py.log 2>&1 &
+/opt/lofar/bin/runParset.py -P $PARTITION parset=$PARSET >>/globalhome/lofarsystem/log/run.runParset.py.log 2>&1 &
 
 #echo "executing /usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5" > startBGL.output
 #/usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5 2>&1 | awk '{split($1, a, "="); print a[2];}' > $1.jobID
diff --git a/MAC/APL/Appl_Controller/stopBGL.sh b/MAC/APL/Appl_Controller/stopBGL.sh
index 4b8d903676dd13209087dc3b3e9ab88c11c2cb51..99e6ee9b4d59ee2540c0d04403dc95a3e497cd30 100755
--- a/MAC/APL/Appl_Controller/stopBGL.sh
+++ b/MAC/APL/Appl_Controller/stopBGL.sh
@@ -7,4 +7,8 @@
 #echo -n "Killing job " $2
 #killjob $1 `cat $2.jobID`
 #rm -f $2.pid $2.ps
-/opt/lofar/bin/commandOLAP.py -P R00 cancel $2
+
+JOB=$2
+PARTITION=$1
+
+/opt/lofar/bin/commandOLAP.py -P $PARTITION cancel $JOB