Moved several variables from public to protected class.