Made a separate Gaussian function.