Implement grounding, including probability generation.