Made ray tracing faster.