Add flag for logging more in grounding.