Fixed `assert` and Added `capture`.