Added rebin_spec() to utilities module and then modified goodness() to use it instead of just interpolating.