Add reliable grid offset detection.