Rewrite response generation