Code used for polarization paper.