WIP. Wrapping mostly works. Still problems with whitespace.