Move permitted attributes into an array

Makes it easier to add to in other projects