Set scan fields on main file