Add middleware to client version