Added delegate to make custom logging easier (Fixes #3).

All 94 tests pass.