Replace fork with spawn