Don't use deprecated lbegin and lend in gridcheck.