Finished implementation of dispatch_asyncs, some code cleanup