Simplifies extracNoise function, introducing bestFit function