Automated Refraction Design And Applications