In X-ray crystallography, the problem that information about the phases of the X-rays is lost in the diffraction images produced. There are several ways of getting around this problem including the direct method, the use of Patterson functions, and attaching heavy atoms to the substance being examined.