Replaced redundant calls to accessors within member functions with direct access to private variables