[bug959270v2] - Added middleware into app