Added timelimit for each factor.