Update build script, added events to attributes