There’s always a price to be paid for innovation. Usually that amounts to some sleepless nights and lots of trial and error. But sometimes it means attempting to deliver babies with a chainsaw.

This dark chapter in agricultural history comes from Popular Science, which recently detailed how the motorized cutting tool populating Home Depot shelves came to be. In the 18th century, two Scottish surgeons named John Aitken and James Jeffray devised a solution they could employ when faced with difficult childbirths. Rather than use a knife to widen the pelvic area by slicing through cartilage and bone to extricate a stuck baby, the two developed a chainsaw to make cutting easier.

While this sounds ghastly, the doctors were actually trying to lessen the agony endured by women who needed their pelvic bone separated. The knife took a long time, while their device—a modified knife with serrated “teeth” on a chain—could cut through bone and tissue more quickly.

If circumstances warranted it, the doctor would grab the saw, which had a handle on both ends, and wrap the chain around the pelvic bone, pulling each handle so the chain would cut into the bone. Later, the device was outfitted with a hand crank. Thanks to this innovation, difficult births could be described as merely agonizing as opposed to extended torture.

The procedure was dubbed a symphysiotomy and remained in use in the medical field as surgeons noticed how efficiently it could work in other circumstances, like amputations. It lasted through much of the 19th century as part of a surgical toolbox until C-sections grew in popularity. In the 20th century, the principle was commandeered for less disturbing purposes like logging, with two-person saws weighing more than 100 pounds each. By the 1950s, those gave way to lighter models.

For all its discomfiting history, at least the chainsaw proved to be useful—which isn't something that can be said for all inventions purporting to aid in childbirth. In 1965, George and Charlotte Blonsky patented a device that acted as a human turntable, spinning so quickly it might induce the patient (or victim) into delivering their baby via centrifugal force.

[h/t Popular Science]