Implemented antiscan middleware
Added more logging