Moved x_ray_script here