Moved request code to new method.
Added put.