Added a selector for the map editor, but is quite buggy.