Implemented pseudo refraction.