Tidy up the thread object.
Remove empty lines.