Added to ray trace helper