Add additional fields to client structure and implement initial accept_client function.