Added a global template helper