Added filename output option.
Useful in batching scenarios.