Adding dimention and hierarchy.