Adds event registration