Update middleware list.