Changed the periodicity of the periodic cov function.