Change timeout to deadline in WaitEvent
API5 tuning example added