Limit the execution time of input generator to 1s.