New functions to MapEditor