Added function to load names from file