Make threads and time limit parameters.