Resolved headless Script problem with query.file names.