Added linear regression method to adjusts and auxiliary functions