Support -f output to file