Moved rewriter to class
Fixed not processing response