Tweak output.
Add events API.