Added main raytracing logic.