Add die if invalid action is passed