Add middleware code.
4 files changed