Removed usage of getName() method