Switched to storing a vector of shared_ptrs of Pid classes to prevent early construction