Added new mask method.