Added thread example.