Start of template::toolkit conversion