Create generic wait-and-log type of checker.

Alternative approach to close #140