Added mask operations