Adds events API