'Known issue' is not an issue.
Move 'wrap' logic into a function.
Name all function parameter variables for improved readability.