Works in order=6 case, but bugs in higher order.