Middle man demo code