Added timeout support to the matcher.