Added the corresponding masking-shadowing functions for MDFs.