Improvements to filled-grid generation. Introduced a cunning idea