Automation for the grid density