You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: SPM8_FirstLevel.m
    path of file: ./repos/bspm/thirdparty/MRtools_2015-08-21/taskFMRI_scripts
    
    the code of the file until where you have to start completion: function SPM8_FirstLevel(fn,pname,ord)
%%% Look at the embedded DefaultParams f
    
function Make_Cons(fn)
        fprintf('\n%s\n', 'Creating Contrast Images:');
        eval(['P = ' pname ';']);
        if isempty(P.nVols)
            ch = ReadInFile([P.root filesep fn filesep P.DestFold '/' P.List],'\t');
            tmp = dir_wfp([P.root filesep fn filesep P.bv.SourceFold filesep P.bv.SourcePrefix '*' P.bv.SourceSuffix]);
            for ii = 1:length(ch); if strcmpi(ch{ii},'NA'); P.nVols(ii) = NaN;  else; P.nVols(ii) = numel(spm_vol(tmp{contains(ch{ii},tmp)})); end