Add method to process cached messages