Was ignoring event 0 which is used to stop "polling" events. Was using mapping which couldn't work with multiple events.