-Small changes in CastRay function