Tweaked the normal GLM pipeline