New version of the template feeder with directory and new name handling