Added some local state features. Added getMap to the simulator. TODO: correct dependencies