Added the code to factory to pull otu the name