Removed redundant spawnProcess.