Prepare client structure