Made generic permissions work