Created local variables for permissions