Add client and server modes