Replaced the Direction[][][] by a Vector[][] and changed support for it.