Added diff gkernel method