Start rewrite generation + others things