Rewrite unmask using seqio