[minor] Added middleware