Changed event() to emit() for consistency