def main(InputFile,ContrastName,Interleave,TR,Regressor):
    print 'RunFillPipelineOnFile_SC.py'

    STCFiles,Methods=STC.main(InputFile,TR,Interleave)
    RMC.main(InputFile)
    for stcfile,meth in zip(STCFiles,Methods):

        GLM.main(stcfile,meth,Regressor,ContrastName)
 
                 
                 Files,MethOrder=STC.main(target)
                 print 'STC Files:\n{}'.format(Files)
                 
                 
                 print 'Method:\t{MC}\n{ln}'.format(MC=MC,ln=ln)
 
                 for InputNii,meth in zip(Files,MethOrder):
                     
                     if meth=='Filt':
                         Regressor='/share/studies/David_FS/Real/MotionCorrection/{}/{}/{}/20_Visual.txt'.format(motion,subID,MC)
                     else:
                         Regressor='/share/studies/David_FS/Real/MotionCorrection/{}/{}/{}/Visual.txt'.format(motion,subID,MC)
                     
                     GLM.main(InputNii,meth,Regressor,con)
                     print 'Reg:\t{Regressor}\nFile:\t{InputNii}\nMeth:\t{meth}'.format(Regressor=Regressor,InputNii=InputNii,meth=meth)
                     
                     
                     
             elif MC=='STMC':
                 
                 
                 print 'Method:\t{MC}\n{ln}'.format(MC=MC,ln=ln)
                 
 
                 
                 Files,MethOrder=STC.main(target)
                 print 'STC Files:\n{}'.format(Files)
 
                 for InputNii,meth in zip(Files,MethOrder):