Grid handling.