Changed event to data. Fixes 0.10 and 0.11 issues.

Fixes #37