converted AddAction and runEvent from primitive parameters to Var parameters