Added "debug"-option for detailed information about failed requests.