Event generator Script