Adding events API