Backend rewriting