Adding events lib