Changes to run_context to dynamically calculate and communicate the size of the messages