Implemented createSubstructure(order, index); needs testing.