Create grid hashes
Create grid functions