New algorithm, grid alignment