Accept string functions for output.file filename parameter