Support single file mode