Added functions to spawn and communicate with processes.