Scientists were able to identify essential properties of the ions that make up metal halide perovskites. The migration of the ions leads to the presence of defects in the material, which have a negative effect on the efficiency and stability of perovskite solar cells.