Added a method to spawn managed processes