Adding missing middleware in example