Allow directions in any number of dimensions