Added enum for region permissions.
A few style changes.