Simplifying algorithm.
Wrapping texts in SVG.