Putting the line output device in a separate thread