All the XHRs in this file could use some error and retry logic.