Rewrite plugin start