Add permission class and some operations