Added command to raise events when needed