GridMap and related funcionts added