Removed use of global for template engine, swapped with static.