Add processing of creation/destruction and events; fix map events.