Added grid for debugging purpose