Added client thread and started link with gui.