Get the old grid alignment code working.