Rewrite inbound