Add coroutine.waitevent and coroutine.sendevent.