Add grid width guessing.