Adding in prefit residuals for analysis