Changed C interface so that it allows grid retrieval