Clean up whitespace in inner loop
Open a new scope so that we can make a local alias for the first tag left in the segment parser. Avoid breaking lines in weird places.
Remove log statement
Don't include unnecessary debugging statements, even during tests.