LinRegr and a bit of testing and cleaning