VB Code for Middleware, will be transfered to C# later