Applied latest IDM changes. Added new event for initialization.