Re-write grid debugging