Making `wait` method return check result.

Fixes #39.