Changed retrieving weights to use GroundKernels.