Added middleware in its simplest state.