The effect of impurities on the superconducting state