 +###########################################################################
  # Don't change the following (but keep scrolling down!)
  ###########################################################################
-
+ 
 @@ -139,6 +156,8 @@
  export POSIXLY_CORRECT
  command=`basename $0`
-
+ 
 +##### Modified for Legion to remove reference to queues etc.
 +#
  usage ()

 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


   cat <<EOF
@@ -148,16 +167,12 @@
 Usage: $command [options] <command>
 
 $command gzip *.img *.hdr
-$command -q short.q gzip *.img *.hdr
 $command -a darwin regscript rawdata outputdir ...
 
   -T <minutes>          Estimated job length in minutes, used to auto-set queue name
-  -q <queuename>        Possible values for <queuename> are "verylong.q", "long.q" 
-                        and "short.q". See below for details
-                        Default is "long.q".
-  -a <arch-name>        Architecture [e.g., darwin or lx24-amd64]
+  -a <arch-name>        Architecture [e.g., darwin (not Legion) or lx24-amd64]
   -p <job-priority>     Lower priority [0:-1024] default = 0                 
-  -M <email-address>    Who to email, default = `whoami`@fmrib.ox.ac.uk 
+  -M <email-address>    Who to email, default = `whoami`@ucl.ac.uk 
   -j <jid>              Place a hold on this task until job jid has completed
