Adding grid positioning and constants