Fixing $allowed_actions to be private for 3.1 compatibility