Added serialization to grid maker