Revert "Revert "Corrected CabOfDMI function""

This reverts commit 5004644e431549ed14506c3bca0c0f80d25a0443.