Discovery could lead to design of next-generation antibiotics.