Make use of sys_wait module.