Added trySpawn to avoid conflicts with waitFor