Changed device pointers.
Fixed coordinate system error with z-axis/azimuth orientation