Moved raytrace out of done