Add timeOut support

Sometimes 1 second is not enough, for instance when debugging.