Simply solve before branch
Remove grid coordinates function
Rename grid_rows and remove alias