Upgraded express and middleware