Name the returned function "middleware"