Add support for thread- and process-based consumption of procedure messages.