Add mask support.