Added search for time and for iterations