Added support for changing the actions.