Added middleware file