Event generation.