Make all tasks asynchronous to reduce call stack. Closes gh-1026.