SYS_WAIT added and untested; need to implement exec.