Removed scanParams(scan).parfile which causes the error in GLM