Removed depricated middleware.