Added possibility to use placeholders in filenames.