[add] Added functions. Still working. Need to fix waitForPid().