Boilerplate for upstream message handling.