Updating grid classes.