Added fresnel functions.