Adding in template handling function and making namespace for application.