Set protection levels for variables to avoid ambiguity. Reverted most recent changes.