Defines an action to perform.