Add interface for Middleware