Moved process creation and monitoring to the general lib