Change the behaviour of mask.