Add Gaussian process function