Implemented new permission system