Add replacement middleware for secretballot