New Changes

Adding thread to client