Rewrite analyze part