Added refraction of locals.