Added the ability to include extra data in perm checks