Initial import
Added middleware