Add client_add function