Edits to masking matrix