Revision code for ray tracing