BTW, I would make wrapping outside padding function. It is just a bit unexpected from outside the function that it also wraps. I would prefer two separate functions you then call one after another.