Add checkParamCount() which stops the event if something's wrong