Nested KBD.

Closes #30.