client loop working.
Client loop working