API Change: now using FIFO order for middleware evaluation.