Reworking map editor from scratch.