Tweaked the regression search function