Switch from spawn to fork