Added mask application rule