Added "render map" function