Change action API for easier async usage.