Added function definitions to use when sending request to server