Researchers in Auckland have decoded the structure of a molecule that may provide clues for a new type of diabetes drug.