Changed the way I've passed template paths and globals