Fixed grid logic.