Add ray trace helper.