Changed architecture of MapEngine and map handling.