Improve CBA to derive variables from others on same level