Update events.c