Improved grid functionality.