Update functionality

New function: limit the number of messages