Added middleware dependency