Multiple modes for filename output