Scientists have come up with a set of rules for making new disordered materials, a process that had previously been driven by trial-and-error. They also found a way to incorporate fluorine, which makes the material both more stable and have higher capacity.