Ignore if mainfile is empty