Residuals + some changes to LU