Issue #5. Allow three extensions for text output.