Add map generation in constructor.