Refactored InputFileCommand