Added Foto Middleware