Add a gaussian fitting function.