Add middleware example