First version of the grid momenta generator. Not yet fully functional.