Added error check for bad responses