Updated for new actions API.