There are two subroutines which can limit the number of message
The first two threshold setting routines deal with the error level. ADDTHRESH deals with the actual text of the error message.