Added folder option for filename template.