Rewrite asynchronous actions.