Created SyncEvent class and OnReceiveEventsListener