Moved some of the process handling code into ROX-Lib.