Use action to define command type