Added the addPut and addDelete function