Added option to set search type in dat file