Removed global variable 'response'