Add CommandEvent to dependencies.