Support different types of actions.