Added function for making PUT requests