Add thread name for debugging and revise typo