Beginning of permission system