Added middleware example