function ConNonCon_pMCC_general_PPI_Batch(directory, results, firstlvlPPI, singlesublvlPPI, gPPI, Encoding, young, subjects, ContrastDir, prefix_VOI)
    for i=1:length(subjects)
    
        disp(['Subject: ' subjects{i}]);
 
        mkdir(strcat(directory, results, firstlvlPPI, gPPI, Encoding, young, subjects{i}, 'jobs'));  
 
        clear matlabbatch
 
        path_to_files = [directory, results, Encoding, singlesublvlPPI, subjects{i}];
 
        VOI_files = [directory, results, Encoding, singlesublvlPPI, subjects{i}, prefix_VOI];
 
        outputDir = [directory, results, firstlvlPPI, gPPI, Encoding, young, subjects{i}]; 
 
        gPPIContrast = [directory, results, firstlvlPPI, gPPI, Encoding, young, subjects{i}, ContrastDir];  
 
        P.subject= subjects{i};
        P.directory= path_to_files;                 
        P.VOI= VOI_files;                           
        P.Region='postMedCingCor';                  
        P.Estimate=1;                                     
        P.contrast=0;                                     
        P.Tasks={'1' 'Contingent'  'Non-Contingent'};
        P.Weights=[];                               
        P.analysis='psy';                           
        P.method='cond';                            
        P.CompContrasts=1;                          
        P.Weighted=0;
        P.ConcatR=0;
        P.preservevarcorr=0;
        P.outdir=outputDir;
        P.GroupDir=gPPIContrast;
 
        save(strcat(directory, results, firstlvlPPI, gPPI, Encoding, young, subjects{i}, 'jobs', filesep, 'gPPI.mat'), 'P');
        cd(strcat(directory, results, firstlvlPPI, gPPI, Encoding, young, subjects{i}, 'jobs'));
        PPPI(P);
        
    end
end