Adds basic event functions.