Add instances and filter messages based on priority.