Changed fork to Process.spawn().