Use middleware globally.