Creates a subprocess in simpler safer manner. Fork of the main repo.