Added basic refraction