Added base middlewareManager.
Legacy