Create access control method instead of anonymous block