Generalize for filename.
Add guard for less arguments.