Added protected vars and doc blocks.