Add Factory mode to gen system and Add FilePath