Added much code to deal with process teams. Compiles and does not seem
to break single process execution of Java.