Having obtained initial phases, an initial model can be built. The atomic positions in the model and their respective Debye-Waller factors (or B-factors, accounting for the thermal motion of the atom) can be refined to fit the observed diffraction data, ideally yielding a better set of phases. A new model can then be fit to the new electron density map and successive rounds of refinement is carried out. This interative process continues until the correlation between the diffraction data and the model is maximized. The agreement is measured by an "R"-factor defined as