Please, allow me to defer...

Where I put commas depends on whether I'm writing formally or informally. If formally, they're as grammatically correct as my knowledge will allow. Informally, as now, I put them to indicate where I would pause in speaking. In "I think, that by doing so", I can hear her voice inflecting up on the word think, just like mine would.