Implemented async_input handling.