Setting the calls to the server