Added the template name to the array result of the fact.
Finished the process fact function.