Now saving request information in a struct. Corrected paramater order for the client.