Removed unused `requestsPending['token']`
Switch from clearState() to initState()
Code style: whitespace
Renamed updateConfig() to getConfig()
Removed unused code