Generate a correctly punctuated version of the following text: By doing this he found that his medicines instead of having as one would expect lowered therapeutic effect exhibited fewer side effects while retaining their potency
By doing this he found that his medicines, instead of having, as one would expect, lowered therapeutic effect exhibited fewer side effects while retaining their potency.