Convert tabs to spaces. Improve logging.