Added client and threading.