Added postEvent
Fixed issue #1