Made formatting update in rewriteBox