Brought in the polynomial fit function, with a nice refactor :see_no_evil: