Run asynchronous functions in order