implement WAIT (use Alarm function)