CRI Middleware