Refactor: Change iterator to const_iterator.