Added POST and PUT methods