Added functions to RayTracer