if
  (settings.startup["bobmods-inserters-long1"].value == true)
  or (
    settings.startup["bobmods-logistics-inserteroverhaul"]
    and settings.startup["bobmods-logistics-inserteroverhaul"].value == true
  )
then
  if not data.raw.technology["bob-long-inserters-1"] then
    data:extend({
      {
        type = "technology",
        name = "bob-long-inserters-1",
        icon = "__bobinserters__/graphics/icons/technology/long-inserters.png",
        icon_size = 128,
        effects = {},
        prerequisites = {
          "logistics",
        },
        unit = {
          count = 20,
          ingredients = {
            { "automation-science-pack", 1 },
          },
          time = 15,
        },
      },
    })
  end

  if settings.startup["bobmods-inserters-long2"].value == true and not data.raw.technology["bob-long-inserters-2"] then
    data:extend({
      {
        type = "technology",
        name = "bob-long-inserters-1",
        icon = "__bobinserters__/graphics/icons/technology/long-inserters.png",
        icon_size = 128,
        effects = {},
        prerequisites = {
          "logistics",
        },
        unit = {
          count = 20,
          ingredients = {
            { "automation-science-pack", 1 },
          },
          time = 15,
        },
      },
      {
        type = "technology",
        name = "bob-long-inserters-2",
        icon = "__bobinserters__/graphics/icons/technology/long-inserters.png",
        icon_size = 128,
        effects = {},
        prerequisites = {
          "bob-long-inserters-1",
          "chemical-science-pack",
        },
        unit = {
          count = 50,
          ingredients = {
            { "automation-science-pack", 1 },
            { "logistic-science-pack", 1 },
            { "chemical-science-pack", 1 },
          },
          time = 15,
        },
      },
    })
  end
end

if not data.raw.technology["bob-near-inserters"] then
  data:extend({
    {
      type = "technology",
      name = "bob-near-inserters",
      icon = "__bobinserters__/graphics/icons/technology/near-inserters.png",
      icon_size = 128,
      effects = {},
      prerequisites = {
        "logistics",
      },
      unit = {
        count = 25,
        ingredients = {
          { "automation-science-pack", 1 },
        },
        time = 15,
      },
    },
  })
end

if not data.raw.technology["bob-more-inserters-1"] then
  data:extend({
    {
      type = "technology",
      name = "bob-more-inserters-1",
      icon = "__bobinserters__/graphics/icons/technology/more-inserters.png",
      icon_size = 128,
      effects = {},
      prerequisites = {
        "logistics-2",
      },
      unit = {
        count = 25,
        ingredients = {
          { "automation-science-pack", 1 },
          { "logistic-science-pack", 1 },
        },
        time = 15,
      },
    },
  })
end

if settings.startup["bobmods-inserters-more2"].value == true and not data.raw.technology["bob-more-inserters-2"] then
  data:extend({
    {
      type = "technology",
      name = "bob-more-inserters-2",
      icon = "__bobinserters__/graphics/icons/technology/more-inserters.png",
      icon_size = 128,
      effects = {},
      prerequisites = {
        "bob-more-inserters-1",
        "logistics-3",
      },
      unit = {
        count = 50,
        ingredients = {
          { "automation-science-pack", 1 },
          { "logistic-science-pack", 1 },
          { "chemical-science-pack", 1 },
          { "production-science-pack", 1 },
        },
        time = 15,
      },
    },
  })
end
