Added tohtml handling in separate thread