Client Code - Multi-Threaded, minor modification