Working on process_wait