Implement and assert on lenient mode.

Closes #3.