Changed fields to protected.