Also redirected stdout and made it asynchronous.