Added ray trace