Extracting event names to variables to avoid typos.