XYZDirection fully operational. Prepare for merge.

This will undoubtedly boost performance 10-fold.