Defining $allowed_actions (required for 3.1)