Cleaner serialization of asynchronous tasks.