Added permission class.
Merge remote-tracking branch 'origin/master'