Adding events, debugging