Use variables for grid settings.