Updated private.xml
Updated permissions pieces to reduce the amount of redundant code.