John's Prototype to make metadata
Updated functions to take receive and publish containers as parameters