Scientists have developed a machine-learning approach that can be combined with experiments to determine, in record time, the location of atoms in powdered solids. Their method can be applied to complex molecules containing thousands of atoms and could be of particular interest to the pharmaceutical industry.