Added thread-id showing function.