Update unparsed middleware logic.
Add stub eunknown middleware.