Added support for multiple return values from actions.