Script results finding mainfile