Now calculating residuals (albeit probably incorrectly)