Some docs for defineEvent