Rewrite sequence method