Implement auditing.

Implements #17.