Adjusted changes to put server function