Handle masking.