Added support for automatic actions.