Altered code for the azure server