Changed to a more correct refraction model