Woops, I didn't mean make a constant I meant change it form a boolean, but I suppose that is fine as it is in line $permissionCheckDone. Thanks, I didn't notice I forgot the $. I will update that. Cheers Ema.