Replaced protected fields with protected properties.