Modified constructor for Process.