Stable version. Implements isCubeMergePermitted