Added Runtime Middleware

+ Removed the redirect middleware