Unsafe method changed to set input rays, too.