Removed need for global response variable

Using that global variable was a bad design choice since these requests
are asynchronous. New design is much better.