Completed rewrite successfully