Start changing file IO to async
Rewrite API calls async