Removed warnings, now using hook 'before_template_render' instead of before_template deprecation