Front end rewrite