Remove unused code.
Remove debug code.
Use post instead of put as the call is not idenpotent.