Add middleware file