Added support for custom actions.