Added automatic iteration count adjust to have kernels execute for max 1 second