 -bigmem.q:   This queue is like the verylong.q but has no memory limits.
 -
  EOF
-
+ 
    exit 1
 @@ -215,7 +216,8 @@
  # Note, we support openmp tasks even when Grid Engine is not in use.
  ###########################################################################
-
+ 
 -omp_pe='openmp'
 +# Set for Legion
 +omp_pe='smp'
-
+ 
  ###########################################################################
  # The following sets up the default queue name, which you may want to
 @@ -223,8 +225,8 @@
  ###########################################################################
-
+ 
  queue=long.q
 -queueCmd=" -q long.q "
 -mailto=`whoami`@fmrib.ox.ac.uk
-+queueCmd=""                    # no user queues on Legion
-+mailto=`whoami`@ucl.ac.uk      # changed for UCL
++queueCmd=""			# no user queues on Legion
++mailto=`whoami`@ucl.ac.uk	# changed for UCL
  MailOpts="a"
-
-
+ 
+ 
 @@ -269,11 +271,13 @@
          exit 0
        fi

 done
-bedpostid=`${FSLDIR}/bin/fsl_sub -j $preprocid -l ${subjdir}.bedpostX/logs -M $mailto -N bedpostx -t ${subjdir}.bedpostX/commands.txt`
+bedpostid=`${FSLDIR}/bin/fsl_sub -j $preprocid -T ${wallclock} -l ${subjdir}.bedpostX/logs -M $mailto -N bedpostx -t ${subjdir}.bedpostX/commands.txt`

 echo Queuing post processing stage
-mergeid=`${FSLDIR}/bin/fsl_sub -j $bedpostid -T 60 -m as -N bpx_postproc -l ${subjdir}.bedpostX/logs ${FSLDIR}/bin/bedpostx_postproc.sh $subjdir`
+mergeid=`${FSLDIR}/bin/fsl_sub -j $bedpostid -T ${wallclock} -m as -N bpx_postproc -l ${subjdir}.bedpostX/logs ${FSLDIR}/bin/bedpostx_postproc.sh $subjdir`

 echo $mergeid > ${subjdir}.bedpostX/logs/postproc_ID


+                        smp for Legion.
                         <threads> specifies the number of threads to run
   -v                    Verbose mode.
 
-Queues:
-
-There are several batch queues configured on the cluster, each with defined CPU
