Rewrite with service