Initial wrapper for the grid position function