Added permission interface
Tweaked permission interface