Changes to Middleware, MiddlewareInt, and created a compile script.