Adding future middleware