Updated ray tracer