Changing capi to support real multidim.