Replace BMASK with a computed clear mask