Allowing protected access to variables