Updated AgentLogicClient to work as connection to server