Middleware for sp-utils