Rewrote testbed_getinput