Generer event i command