Modify: Improved threads example.