Added ability to specify a finite number of responses for a stub.