Researchers develop safer opioid painkiller from scratch